package com.swyc.osschat.Test.designMode.template.impl;

import com.swyc.osschat.Test.designMode.template.base.Vehicle;

/**
 * @description 环境角色：
 * @Author: z156940l@outlook.com
 * @className Travel
 * @Date: 2022/7/25 22:47
 */
public class Travel {
    private Vehicle vehicle;//持有策略引用

    public Vehicle getVehicle() {
        return vehicle;
    }

    public void setVehicle(Vehicle vehicle) {
        this.vehicle = vehicle;
    }

    public void goTravel(){
        vehicle.vehicleType();
    }
}
